package com.qifan.alb2b.service;

import org.springframework.stereotype.Service;

import com.qifan.alb2b.dao.CarInfoDao;
import com.qifan.alb2b.domain.CarInfoDomain;
import com.qifan.alb2b.util.DataGridModel;
import com.qifan.alb2b.util.Page;

/**
 * 接送业务
 * @author hc24
 *
 */
@Service
public class CarInfoService {
	private CarInfoDao carInfoDao;

	
	
	public void setCarInfoDao(CarInfoDao carInfoDao) {
		this.carInfoDao = carInfoDao;
	}

	public Page query(DataGridModel dgm,CarInfoDomain cid){
		return carInfoDao.query(dgm, cid);
	}
	
	public CarInfoDomain getCarById(String cid){
		return carInfoDao.getCarById(cid);
	}
	
	public void add(CarInfoDomain carInfoDomain){
		carInfoDao.add(carInfoDomain);
	}
	
	public void update(CarInfoDomain carInfoDomain){
		carInfoDao.update(carInfoDomain);
	}
	
	public void delete(String[] ids){
		carInfoDao.delete(ids);
	}
}
